package modules.march 
{
	import flash.display.Sprite;
	import ui.TextureSelectItemUI;
	import util.Tools;
	
	/**
	 * ...
	 * @author WLDragon 2013-12-22
	 */
	public class TextureSelectItem extends TextureSelectItemUI 
	{
		
		public function TextureSelectItem() 
		{
			super();
			
			var w:int = Tools.textures.w;
			var h:int = Tools.textures.h;
			mBorder = new Sprite;
			with (mBorder.graphics)
			{
				lineStyle(1,0x808080);
				moveTo(0, h - 1);
				lineTo(w - 1, h - 1);
				lineTo(w - 1, 0);
			}
			addChild(mBorder);
		}
		
		public function get index():int 
		{
			return _index;
		}
		
		public function set index(value:int):void 
		{
			_index = value;
			labIndex.text = _index.toString();
			labIndex.visible = true;
		}
		
		private var _index:int;
		/**描边*/
		private var mBorder:Sprite;
	}

}